/*
 * Created on 28/02/2004
 *
 * To change the template for this generated file go to
 * Window - Preferences - Java - Code Generation - Code and Comments
 */
package org.potiorb.orb.poa;

import org.potiorb.orb.portable.IDLEntity;

public class State implements IDLEntity {


	public static final int _HOLDING = 0;
	public static final State HOLDING =	new State(_HOLDING);

	public static final int _ACTIVE = 1;
	public static final State ACTIVE =	new State(_ACTIVE);

	public static final int _DISCARDING = 2;
	public static final State DISCARDING =	new State(_DISCARDING);

	public static final int _INACTIVE = 3;
	public static final State INACTIVE = new State(_INACTIVE);

	public int value() {
			return 0;
	}

	public static State from_int(int val){
		switch (val) {
		case _HOLDING:
			return HOLDING;
		case _ACTIVE:
			return ACTIVE;
		case _DISCARDING:
			return DISCARDING;
		case _INACTIVE:
			return INACTIVE;
		default:
			throw new org.omg.CORBA.BAD_PARAM();
		}
	}

	protected State(int _value) {

	}

}
